<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('agent_admin')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>姓名：</span><input type="text" name="real" value="{$real}"/></li>
                    <li><span>电话号码：</span><input type="text" name="phone" value="{$phone}"/></li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr">
                    <input type="hidden" name="agent_id" value="{$agent_id}"/>
                    <input type="submit" class="but_blue" value="搜索">
                </div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
                <tr>
                    <th style="width: 5%;" class="tabSort-header"><a class="tabSort-header-inner"><p>编号</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>头像</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>姓名</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>手机号</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>工作证</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>是否负责人</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>是否实名</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>是否启用</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>是否删除</p></a></th>
                    <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                </tr>
            </thead>
            <tbody>
                {foreach name="agent_admin_list" item="info"}
                    <tr>
                        <td>{$info.agent_admin_id}</td>
                        <td>{:widget('common/Images/img',array($info["avatar"],50,30))}</td>
                        <td>{empty name="info['real']"}--{else/}{$info.real}{/empty}</td>
                        <td>{$info.phone}</td>
                        <td>{:widget('common/Images/img',array($info["work_card"],50,30))}</td>
                        <td>{:widget('common/Color/Color',array("is_leader",$info['is_leader']))}</td>
                        <td>{:widget('common/Color/Color',array("is_real",$info['is_real']))}</td>
                        <td>{:widget('common/Color/Color',array("agent_admin_status",$info['agent_admin_status']))}</td>
                        <td>{:widget('common/Color/Color',array("is_delete",$info['is_delete']))}</td>
                        <td>
                            <a data-type="info-win" data-src="{:Url('agent_admin_info',array('agent_admin_id'=>$info['agent_admin_id']))}" data-title="详情" data-width="80%" data-height="80%" class="blue">详情</a>
                        </td>
                    <tr>
                    {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要禁用该信贷公司吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>